package com.bike.modules.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bike.modules.dto.QueryDTO;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bike.modules.dao.NoticeMapper;
import com.bike.modules.entity.Notice;
import com.bike.modules.service.NoticeService;
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService{
    @Override
    public IPage<Notice> selectPage(QueryDTO dto){
        IPage<Object> page = new Page<>(dto.getCurrent(),dto.getSize());
        return this.baseMapper.selectPage(page,dto);
    }

    @Override
    public int updateNotTop() {
        return this.baseMapper.updateNotTop();
    }
}
